package com.example.demo.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.sql.Timestamp;


@Data
@NoArgsConstructor
@TableName(value = "user_info")
@Component
public class User {
    @TableId(type = IdType.AUTO)
    int user_id;

    String username;
    String password;
    String hp_url;
    int age;
    String gender;
    String sexualOrien;

    String personalSign;
    String introduce;
    String hobby;
    String loveView;
    String request;
    String state;

    @TableField("lastTime")
    Timestamp lastTime;
}
